home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 83win / data1.cab / Help_Files / DAQNI.txt < prev    next >
Encoding:
Text File  |  2001-03-02  |  9.7 KB  |  292 lines

  1. DAQNI Driver
  2.  
  3.  
  4. Loading
  5. Load Bin ôDAQNI;ISC # DEV devö
  6. Registers
  7. 1800 ù Board Specific
  8.  
  9. 30    Parameter 1 for register 35 ù Analog Trigger on/off
  10.     0 = Analog Trigger Off
  11.     1 = Analog Trigger ON
  12. 31    Parameter 2 for register 35 ù trigger low value
  13.     Specify a value between 0 and 255 (4095 for 16 bit cards).  The minimum is 
  14.     equivalent to -10V and the maximum is equivalent to +10V.  
  15. 32    Parameter 3 for register 35 ù trigger high value
  16.     Specify a value between 0 and 255 (4095 for 16 bit cards).  The minimum is 
  17.     equivalent to -10V and the maximum is equivalent to +10V.  
  18. 33    Parameter 4 for register 35 ù Mode
  19.     see NI-DAQ function reference for definitions.
  20.     0 = ND_BELOW_LOW_LEVEL
  21.     1 = ND_ABOVE_HIGH_LEVEL
  22.     2 = ND_INSIDE_REGION
  23.     3 = ND_HIGH_HYSTERESIS
  24.     4 = ND_LOW_HYSTERESIS
  25. 34    Parameter 5 for register 35 ù Trigger Source
  26.     see NI-DAQ function reference for definitions.
  27.     0 = ND_PFI_0
  28.     1 = ND_THE_AI_CHANNEL
  29. 35    Configure trigger function (Configure_HW_Analog_Trigger)
  30.     set registers 30-34 then to call this function write a non-zero value to this register.
  31.     You must also use select signal in conjunction with this function.
  32. 40    Parameter 1 for register 43 ù signal
  33.     see NI-DAQ function reference for definitions.
  34.     0 = ND_IN_START_TRIGGER
  35.     1 = ND_IN_STOP_TRIGGER
  36.     2 = ND_IN_SCAN_CLOCK_TIMEBASE
  37.     3 = ND_IN_CHANNEL_CLOCK_TIMEBASE
  38.     4 = ND_IN_CONVERT
  39.     5 = ND_IN_SCAN_START
  40.     6 = ND_IN_EXTERNAL_GATE
  41.     7 = ND_OUT_START_TRIGGER
  42.     8 = ND_OUT_UPDATE
  43.     9 = ND_OUT_UPDATE_CLOCK_TIMEBASE
  44.     10 - 19 = ND_PFI_0 - ND_PFI_9
  45.     20 = ND_GPCTR0_OUTPUT
  46.     21 = ND_GPCTR1_OUTPUT
  47.     22 = ND_FREQ_OUT
  48.     23 - 29 = ND_RTSI_0 - ND_RTSI_6
  49.     30 = ND_RTSI_CLOCK
  50.     31 = ND_BOARD_CLOCK
  51. 41    Parameter 2 for register 43 ù source
  52.     See NI-DAQ function reference for definitions.
  53.     0 - 9 = ND_PFI_0 - ND_PFI_9
  54.     10 - 16 = ND_RTSI_0 - ND_RTSI_6
  55.     17 = ND_RTSI_CLOCK
  56.     18 = ND_GPCTR0_OUTPUT
  57.     19 = ND_GPCTR0_SOURCE
  58.     20 = ND_GPCTR0_GATE
  59.     21 = ND_GPCTR1_OUTPUT
  60.     22 = ND_GPCTR1_SOURCE
  61.     23 = ND_GPCTR1_GATE
  62.     24 = ND_NONE
  63.     25 = ND_INTERNAL_TIMER
  64.     26 = ND_INTERNAL_10_MHZ
  65.     27 = ND_INTERNAL_20_MHZ
  66.     28 = ND_INTERNAL_100_KHZ
  67.     29 = ND_IN_START_TRIGGER
  68.     30 = ND_OUT_START_TRIGGER
  69.     31 = ND_IN_STOP_TRIGGER
  70.     32 = ND_IO_CONNECTOR
  71.     33 = ND_AUTOMATIC
  72.     34 = ND_IN_CONVERT
  73.     35 = ND_OUT_UPDATE
  74.     36 = ND_IN_SCAN_START
  75.     37 = ND_IN_SCAN_IN_PROG
  76.     38 = ND_RESERVED
  77.     39 = ND_MARKER
  78.     40 = ND_SYNC_OUT
  79.     41 = ND_BOARD_CLOCK
  80. 42    Parameter 3 for register 43 ù source spec
  81.     See NI-DAQ function reference for definitions.
  82.     0 = ND_DONT_CARE
  83.     1-16 = value 1-16
  84.     17 = ND_HIGH_TO_LOW
  85.     18 = ND_LOW_TO_HIGH
  86.     19 = ND_PAUSE_ON_HIGH
  87.     20 = ND_PAUSE_ON_LOW
  88.     21 = ND_POSITIVE
  89. 43    Select signal function (Select_Signal)
  90.     set registers 40-42 then, to call this function write a non-zero value to this register.
  91.  
  92. 1801 ù    Analog Input
  93.     
  94.     0    Reset Registers
  95.     Writing a 0 here will should reset all registers, but at this point it will only reset registers 0-24.
  96.  
  97.     Writing a 1 here will reset all Analog Input registers.
  98.     1    Scan Rate
  99.     Scan rate is measured in scans per second.  The allowed range is 0 to 500,000 scans/s.  A value of 0 means no delay between scans and results in approximately 0.00153 scans/s.  This value is affected by the number of channels in your scan.
  100.     2    Start Channel
  101.     Start channel and channel list flag register.  Specifies either the first channel to be 
  102.     scanned in the A/D scan sequence, or if a value of -1 is applied, Directs the driver to use the channel list specified.
  103.     3    Stop Channel
  104.     Stop channel and number in channel list register.  Specifies either the last channel to be scanned in the A/D scan sequence, or if a value of -1 was applied to register 2, should be the number of channels in the channel list.
  105.     4    Gain Value
  106.     Value of gain to be applied with start and stop channel scan.
  107.     10    Scale Value
  108.     Measured voltage is multiplied by this value.
  109.     11    Offset Value
  110.     This value is added to measured voltage after it is multiplied by scale value.
  111.     17    Sample Rate
  112.     Sample rate measured in pts/s.  Allowed range is approximately 0.00153 to 500,000.  The maximum rate depends on the device used.  This is the rate at which channels are sampled in a scan sequence.
  113.     19    Channel List
  114.     An integer list of channels in the order that you want them scanned. (Max 5000)
  115.     20    Gain List
  116.     An integer list of gains to use with the channel list.  The gain at position 3 corresponds to the channel at position 3 of the channel list. (Max 5000)
  117.     21    Gain Correct
  118.     During the voltage calculation Gain is multiplied by this number.
  119.     22    Voltage Correct
  120.     Amount needed to subtract from sample for voltage calculation.
  121.     23    Number of Samples
  122.     Number of samples to take.  (Max 5000)
  123.     24    Timeout Ticks (Timeout_Config)
  124.     Number of ticks before timeout.  There are about 18 ticks per second.  Timeout will occur only during a scan.  A timeout will return a timeout event which can be trapped with ON TIMEOUT.  The value specified in ON TIMEOUT is ignored.
  125.  
  126.  
  127. 1802 ù Analog Output
  128.  
  129.     0    Reset Registers
  130.     Writing a 0 here will reset all currently functioning registers
  131.  
  132.     Writing a 1 here will reset all Analog Output registers.
  133.     2    Start Channel
  134.     Start channel and channel list flag register.  Specifies either the first channel to be used in the A/O sequence, or if a value of -1 is applied, Directs the driver to use the channel list specified.
  135.     3    Stop Channel
  136.     Stop channel and number in channel list register.  Specifies either the last channel to be used in the A/O sequence, or if a value of -1 was applied to register 2, should be the number of channels in the channel list.
  137.     4    Gain Value
  138.     Value of gain to be applied with start and stop channel output.
  139.     5    Iterations
  140.     The number of times to output the output buffer.  A zero will continue indefinitely.
  141.     17    Output Rate
  142.     The output rate for the sequence in points per second.
  143.     19    Channel List
  144.     An integer list of channels in the order that you want them sent. (Max 5000)
  145.     20    Output Buffer
  146.     A list of floating point values representing voltages in the order you want them sent.  (Max 5000)
  147.     21    Buffer Count
  148. The number of floating point values that are in the Output Buffer
  149.     30    Wave Generator (WFM_Scale, WFM_Op)
  150.     Writing a 1 here starts wave generation.  During Wave generation all access to the card will result in a ôtarget device busyö error.  The Wave generated is determined by the information provided in the previous registers.
  151.     Writing a 0 here stops wave generation.
  152.  
  153. 1803 ù Digital Input/Output
  154.  
  155.     0    Reset Registers
  156.     Writing a 0 here will reset all currently functioning registers Writing a 1 here will reset all Digital Input/Output registers.
  157.     10    Line
  158.     Param for reg 14.  Line number to configure
  159.     11    Port
  160.     Param for reg 14.  Port number to configure
  161.     12    handshake
  162.     param for reg 14.  Handshake on/off
  163.     13    Direction
  164.     Param for reg 14.  Input/Output selection
  165.     10 Configure (DIG_Line_Config or DIG_Prt_Config)
  166.     Write 1 to call line config or 2 to call port config.
  167.     20    Group
  168.     Param for reg 24.  Group to be configured.
  169.     21    Group size
  170.     param for reg 24.  Group size.
  171.     22    Group port
  172.     Param for reg 24. Array to assign for group param for group config.call.
  173.     23    group direction
  174.     param for reg 24.  Input or output (direction) for group param
  175.     24    group configure (DIG_Grp_Config, DIG_SCAN_Setup)
  176.     non-zero to call.
  177.     30    number of samples
  178.     number of digital samples to take (group I/O only)
  179.     31    use 16 bits 
  180.     card uses all 16 bits of buffer elements.
  181.     32    split bytes
  182.     separate upper and lower bytes and return seperately
  183.     33    use hand shake
  184.     driver should use handshaking.
  185.     34    output buffer
  186.     buffer to hold output    
  187.     40    pattern group
  188.     param for reg 46.  Group param.
  189.     41    Config flag
  190.     param for reg 46.  Config flag for pattern generation.
  191.     42    request source
  192.     param for reg 46.
  193.     43    timebase
  194.     param for reg 46.
  195.     44    request interval
  196.     param for reg 46.  Request interval pattern.
  197.     45    external gate.
  198.     param for reg 46.  External gate param.
  199.     46    pattern generation (DIG_Block_PG_Config)
  200.     non-zero to setup pattern generation
  201.     50    group trigger
  202.     param for reg 58.  Group number to configure
  203.     51    start trigger
  204.     param for reg 58.  Start trigger source
  205.     52    start polarity
  206.     param for reg 58.  Polarity of the start trigger.
  207.     53    Stop trigger
  208.     Param for reg 58.  Stop trigger source
  209.     54    stop polarity
  210.     param for reg 58.  Polarity of the stop trigger.
  211.     55    points after stop trigger
  212.     param for reg 58.  Number of points to acquire after the stop trigger.
  213.     56    pattern
  214.     param for reg 58.  Digital pattern to use if requested.
  215.     57    pattern mask
  216.     param for reg 58.  Pattern mask for digital trigger.
  217.     58    trigger config (DIG_Trigger_Config)
  218.     non-zero to call
  219.  
  220.  
  221. 1804 -- Counter/Timer I/O registers
  222.  
  223.     0    reset
  224.     Writing a 0 here will reset all currently functioning registers
  225.     Writing a 1 here will reset all Digital Input/Output registers.
  226.  
  227. CTR_Config (register 15)
  228.     Parameter registers
  229.     10    counter
  230.     11    edge mode
  231.     12    gate mode
  232.     13    out type
  233.     14    out polarity
  234.     
  235. CTR_EvCount (register 23)
  236.     Parameter registers
  237.     20    counter
  238.     21    timebase
  239.     22    continue
  240. CTR_Period (register 32)
  241.     Parameter registers
  242.     30    counter
  243.     31    timebase
  244. CTR_Pulse (register 44)
  245.     Parameter registers
  246.     40    counter
  247.     41    timebase
  248.     42    delay
  249.     43    pulse width
  250. CTR_Rate (register 52)
  251.     Parameter registers
  252.     50    frequency
  253.     51    duty
  254. Output registers
  255.     53    timebase
  256.     54    period 1
  257.     55    period 2
  258.  
  259. CTR_Reset (register 62)
  260.     Parameter registers
  261.         60    counter
  262.         61    output
  263.  
  264. CTR_Restart (register 71)
  265.     Parameter registers
  266.         70    counter
  267.  
  268. CTR_Simul_Op (register 83)
  269.     Parameter registers
  270.         80    number of counters
  271.         81    counters (array)
  272.         82    mode
  273.  
  274. CTR_Square (register 94)
  275.     Parameter registers
  276.         90    counter
  277.         91    timebase
  278.         92    period 1
  279.         93    period 2
  280.  
  281. CTR_State (register 101)
  282.     Parameter registers
  283.         100    counter
  284.     Output registers
  285.         102    out state
  286.  
  287. CTR_Stop (register 111)
  288.     Parameter registers
  289.         110    counter
  290.  
  291.  
  292.